package com.xbongbong.pro.listbatch.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author long.rao
 * @version v1.0
 * @date 2019/12/23 15:31
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class TeamBatchPojo {

    /**
     * 异常code
     */
    private Integer code;
    /**
     * 具体失败信息:张杰、张三，3个数据移交失败
     */
    private String failMsg;
    /**
     * 失败原因
     */
    private String failMsgReason;

    /**
     * 错误的具体名称（用于团队成员统一返回）
     */
    private Object errorName;

    /**
     * 基本操作（用于团队成员统一返回）
     */
    private String basicOperate;

    /**
     * 避免一条数据因为不同的错误而提示多条错误信息
     */
    private Long dataId;

    public TeamBatchPojo() {
    }


    public TeamBatchPojo(Integer code, String failMsgReason, Object errorName, String basicOperate) {
        this.code = code;
        this.failMsgReason = failMsgReason;
        this.errorName = errorName;
        this.basicOperate = basicOperate;
    }

    public TeamBatchPojo(Integer code, String failMsgReason, Object errorName, String basicOperate, Long dataId) {
        this.code = code;
        this.failMsgReason = failMsgReason;
        this.errorName = errorName;
        this.basicOperate = basicOperate;
        this.dataId = dataId;
    }
}
